<% content_for(:navigation) do %>
	<%= render :partial => "navigation/general_navigation" %>
<% end %>

<div class="basic-form alert gray horizontal rounded-4">
	<h1><%= @user %></h1>
	<dl>
		<dt><b><%= t :label, :scope => [:user, :name] %></b></dt>
		<dd><%= @user.name if @user.name %></dd>
		
		<dt><b><%= t :label, :scope => [:user, :email] %></b></dt>
		<dd><%= @user.email %></dd>
		
		<dt><b><%= t :label, :scope => [:user, :timezone] %></b></dt>
		<dd><%= @user.timezone %></dd>
	</dl>
</div>

<h2><%= t :projects_of, :user => @user, :scope => :user %></h2>

<%= render :partial => 'projects/my_projects', :locals => {:projects => @user.projects} %>

<% content_for(:sidebar) do %>
	<%= render :partial => "projects/updates", :locals => {:logs => @user.logs.all(:order => "created_at DESC", :limit => 10)} %>
<% end %>